<?php

namespace AdminsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ProductStatistic
 *
 * @ORM\Table(name="product_statistics")
 * @ORM\Entity(repositoryClass="AdminsBundle\Repository\ProductStatisticRepository")
 */
class ProductStatistic
{
    /**
     * @var int
     *
     * @ORM\Column(name="product_id", type="integer")
     * @ORM\Id
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="product_open_time", type="integer")
     */
    private $open;

    /**
     * @var int
     *
     * @ORM\Column(name="product_search_time", type="integer")
     */
    private $search;

    /**
     * @var int
     *
     * @ORM\Column(name="product_collection_time", type="integer")
     */
    private $collect;

    /**
     * @var int
     *
     * @ORM\Column(name="product_sell_num", type="integer")
     */
    private $sell;

    /**
     * @var float
     *
     * @ORM\Column(name="product_all_star", type="float")
     */
    private $stars = 5;

    /**
     * @var int
     *
     * @ORM\Column(name="product_star_count_1", type="integer")
     */
    private $star1 = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="product_star_count_2", type="integer")
     */
    private $star2 = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="product_star_count_3", type="integer")
     */
    private $star3 = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="product_star_count_4", type="integer")
     */
    private $star4 = 5;

    /**
     * @var int
     *
     * @ORM\Column(name="product_star_count_5", type="integer")
     */
    private $star5 = 21;


    /**
     * Set id
     *
     * @param integer $id
     *
     * @return ProductStatistic
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set open
     *
     * @param integer $open
     *
     * @return ProductStatistic
     */
    public function setOpen($open)
    {
        $this->open = $open;

        return $this;
    }

    /**
     * Get open
     *
     * @return integer
     */
    public function getOpen()
    {
        return $this->open;
    }

    /**
     * Set search
     *
     * @param integer $search
     *
     * @return ProductStatistic
     */
    public function setSearch($search)
    {
        $this->search = $search;

        return $this;
    }

    /**
     * Get search
     *
     * @return integer
     */
    public function getSearch()
    {
        return $this->search;
    }

    /**
     * Set collect
     *
     * @param integer $collect
     *
     * @return ProductStatistic
     */
    public function setCollect($collect)
    {
        $this->collect = $collect;

        return $this;
    }

    /**
     * Get collect
     *
     * @return integer
     */
    public function getCollect()
    {
        return $this->collect;
    }

    /**
     * Set sell
     *
     * @param integer $sell
     *
     * @return ProductStatistic
     */
    public function setSell($sell)
    {
        $this->sell = $sell;

        return $this;
    }

    /**
     * Get sell
     *
     * @return integer
     */
    public function getSell()
    {
        return $this->sell;
    }

    /**
     * Set stars
     *
     * @param float $stars
     *
     * @return ProductStatistic
     */
    public function setStars($stars)
    {
        $this->stars = $stars;

        return $this;
    }

    /**
     * Get stars
     *
     * @return float
     */
    public function getStars()
    {
        return $this->stars;
    }

    /**
     * Set star1
     *
     * @param integer $star1
     *
     * @return ProductStatistic
     */
    public function setStar1($star1)
    {
        $this->star1 = $star1;

        return $this;
    }

    /**
     * Get star1
     *
     * @return integer
     */
    public function getStar1()
    {
        return $this->star1;
    }

    /**
     * Set star2
     *
     * @param integer $star2
     *
     * @return ProductStatistic
     */
    public function setStar2($star2)
    {
        $this->star2 = $star2;

        return $this;
    }

    /**
     * Get star2
     *
     * @return integer
     */
    public function getStar2()
    {
        return $this->star2;
    }

    /**
     * Set star3
     *
     * @param integer $star3
     *
     * @return ProductStatistic
     */
    public function setStar3($star3)
    {
        $this->star3 = $star3;

        return $this;
    }

    /**
     * Get star3
     *
     * @return integer
     */
    public function getStar3()
    {
        return $this->star3;
    }

    /**
     * Set star4
     *
     * @param integer $star4
     *
     * @return ProductStatistic
     */
    public function setStar4($star4)
    {
        $this->star4 = $star4;

        return $this;
    }

    /**
     * Get star4
     *
     * @return integer
     */
    public function getStar4()
    {
        return $this->star4;
    }

    /**
     * Set star5
     *
     * @param integer $star5
     *
     * @return ProductStatistic
     */
    public function setStar5($star5)
    {
        $this->star5 = $star5;

        return $this;
    }

    /**
     * Get star5
     *
     * @return integer
     */
    public function getStar5()
    {
        return $this->star5;
    }
}
